package com.ruoyi.process.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.process.mapper.ArgoProcessMapper;
import com.ruoyi.process.domain.ArgoProcess;
import com.ruoyi.process.service.IArgoProcessService;

/**
 * 农事过程任务Service业务层处理
 * 
 * @author qhr
 * @date 2024-02-27
 */
@Service
public class ArgoProcessServiceImpl implements IArgoProcessService 
{
    @Autowired
    private ArgoProcessMapper argoProcessMapper;

    /**
     * 查询农事过程任务
     * 
     * @param id 农事过程任务主键
     * @return 农事过程任务
     */
    @Override
    public ArgoProcess selectArgoProcessById(Long id)
    {
        return argoProcessMapper.selectArgoProcessById(id);
    }

    /**
     * 查询农事过程任务列表
     * 
     * @param argoProcess 农事过程任务
     * @return 农事过程任务
     */
    @Override
    public List<ArgoProcess> selectArgoProcessList(ArgoProcess argoProcess)
    {
        return argoProcessMapper.selectArgoProcessList(argoProcess);
    }

    /**
     * 新增农事过程任务
     * 
     * @param argoProcess 农事过程任务
     * @return 结果
     */
    @Override
    public int insertArgoProcess(ArgoProcess argoProcess)
    {
        return argoProcessMapper.insertArgoProcess(argoProcess);
    }

    /**
     * 修改农事过程任务
     * 
     * @param argoProcess 农事过程任务
     * @return 结果
     */
    @Override
    public int updateArgoProcess(ArgoProcess argoProcess)
    {
        return argoProcessMapper.updateArgoProcess(argoProcess);
    }

    /**
     * 批量删除农事过程任务
     * 
     * @param ids 需要删除的农事过程任务主键
     * @return 结果
     */
    @Override
    public int deleteArgoProcessByIds(Long[] ids)
    {
        return argoProcessMapper.deleteArgoProcessByIds(ids);
    }

    /**
     * 删除农事过程任务信息
     * 
     * @param id 农事过程任务主键
     * @return 结果
     */
    @Override
    public int deleteArgoProcessById(Long id)
    {
        return argoProcessMapper.deleteArgoProcessById(id);
    }
}
